import request from '@/utils/request'
// ExamOneSelect
export function updateExamOneSelect(searchData) {
  return request({
    url: '/examOneSelect/update',
    method: 'post',
    data: searchData
  });
}

export function deleteExamOneSelect(id, ceeExamId) {
  return request({
    url: '/examOneSelect/delete',
    method: 'get',
    params: {
      id: id,
      ceeExamId: ceeExamId
    }
  });
}


export function addExamOneSelect(searchData) {
  return request({
    url: '/examOneSelect/add',
    method: 'post',
    data: searchData
  });
}



// ExamManySelect
export function updateExamManySelect(searchData) {
  return request({
    url: '/examManySelect/update',
    method: 'post',
    data: searchData
  });
}

export function deleteExamManySelect(id, ceeExamId) {
  return request({
    url: '/examManySelect/delete',
    method: 'get',
    params: {
      id: id,
      ceeExamId: ceeExamId
    }
  });
}


export function addExamManySelect(searchData) {
  return request({
    url: '/examManySelect/add',
    method: 'post',
    data: searchData
  });
}



// ExamJudge
export function updateExamJudge(searchData) {
  return request({
    url: '/examJudge/update',
    method: 'post',
    data: searchData
  });
}

export function deleteExamJudge(id, ceeExamId) {
  return request({
    url: '/examJudge/delete',
    method: 'get',
    params: {
      id: id,
      ceeExamId: ceeExamId
    }
  });
}


export function addExamJudge(searchData) {
  return request({
    url: '/examJudge/add',
    method: 'post',
    data: searchData
  });
}


// ExamCompletion
export function updateExamCompletion(searchData) {
  return request({
    url: '/examCompletion/update',
    method: 'post',
    data: searchData
  });
}

export function deleteExamCompletion(id, ceeExamId) {
  return request({
    url: '/examCompletion/delete',
    method: 'get',
    params: {
      id: id,
      ceeExamId: ceeExamId
    }
  });
}


export function addExamCompletion(searchData) {
  return request({
    url: '/examCompletion/add',
    method: 'post',
    data: searchData
  });
}


// ExamShortAnswer
export function updateExamShortAnswer(searchData) {
  return request({
    url: '/examShortAnswer/update',
    method: 'post',
    data: searchData
  });
}

export function deleteExamShortAnswer(id, ceeExamId) {
  return request({
    url: '/examShortAnswer/delete',
    method: 'get',
    params: {
      id: id,
      ceeExamId: ceeExamId
    }
  });
}


export function addExamShortAnswer(searchData) {
  return request({
    url: '/examShortAnswer/add',
    method: 'post',
    data: searchData
  });
}










